﻿using System;
using System.Globalization;
using System.Windows.Data;
using PairingMatrix.Common.Enum;

namespace PairingMatrix.View.Converter
{
    public class DevelopmentStageToOpacityConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if(value is StoryStatus)
            {
                if ((string) parameter == value.ToString())
                    return 0.4;
            }
            return 0;
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
